Skip to content

Conversation

@kazutakahirata
Copy link
Contributor

No description provided.

@llvmbot llvmbot added the mlir label May 10, 2025
@kazutakahirata kazutakahirata requested a review from joker-eph May 10, 2025 20:58
@kazutakahirata kazutakahirata changed the title [llvm] Remove redundant calls to std::unique_ptr<T>::get (NFC) [llvm] Remove a redundant call to std::unique_ptr<T>::get (NFC) May 10, 2025
@llvmbot
Copy link
Member

llvmbot commented May 10, 2025

@llvm/pr-subscribers-mlir

Author: Kazu Hirata (kazutakahirata)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/139409.diff

1 Files Affected:

  • (modified) mlir/include/mlir/Analysis/DataFlowFramework.h (+1-1)
diff --git a/mlir/include/mlir/Analysis/DataFlowFramework.h b/mlir/include/mlir/Analysis/DataFlowFramework.h
index 4364907968f97..caf978a51fd8e 100644
--- a/mlir/include/mlir/Analysis/DataFlowFramework.h
+++ b/mlir/include/mlir/Analysis/DataFlowFramework.h
@@ -707,7 +707,7 @@ template <typename AnalysisT, typename... Args>
 AnalysisT *DataFlowSolver::load(Args &&...args) {
   childAnalyses.emplace_back(new AnalysisT(*this, std::forward<Args>(args)...));
 #if LLVM_ENABLE_ABI_BREAKING_CHECKS
-  childAnalyses.back().get()->debugName = llvm::getTypeName<AnalysisT>();
+  childAnalyses.back()->debugName = llvm::getTypeName<AnalysisT>();
 #endif // LLVM_ENABLE_ABI_BREAKING_CHECKS
   return static_cast<AnalysisT *>(childAnalyses.back().get());
 }

@kazutakahirata kazutakahirata requested a review from shiltian May 10, 2025 20:58
@kazutakahirata kazutakahirata changed the title [llvm] Remove a redundant call to std::unique_ptr<T>::get (NFC) [mlir] Remove a redundant call to std::unique_ptr<T>::get (NFC) May 10, 2025
@kazutakahirata kazutakahirata merged commit fd98612 into llvm:main May 10, 2025
13 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_clang_tidy_readability_redundant_smartptr_get_mlir branch May 10, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants